home *** CD-ROM | disk | FTP | other *** search
- On Thu, 2 Feb 1995, Mike Crowl wrote:
-
- > Giday all,
- >
- > just looking for some help in writing a tetris game. The bit I'd like
- > some help with is how you would check to see if the block had hit another
- > block and so on.
- >
-
- Keep an internal representation of the board in an Array...
- initialize it to 0 to mean all spots on the board are empty and make
- a 1 mean that the spot is filled...
-
- ie. a 5x5 tetris board...
-
- 00000 --> Dim Board(4,4)
- 00000
- 00000
- 00000
- 00000
-
-
- So know you must also conceptual move the tetris piece inside
- the Array... this will let you know where you can move... when you
- find that you can't move.. set the board spots to ones...
-
- There are many different ways you can handle moving the piece
- inside the Array...
-
-
- mike
-
- > Any help would be much appreciated.
- >
- > Ben Crowl
- >
- >
-
-